<h1>修改密码</h1>

<div class="form">
<?php if (Yii::app()->user->hasFlash('password')) { ?>

<div class="flash-success">
	<?php echo Yii::app()->user->getFlash('password'); ?>
</div>
<?php } ?>

<?php $form = $this
	->beginWidget('CActiveForm',
		array(
			'id' => 'password-change-form-passwordChange-form',
			'enableAjaxValidation' => false,
		));
?>

	
	<p class="note">带 <span class="required">*</span> 的是必填的哦！</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model, 'currentPassword'); ?>
		<?php echo $form->passwordField($model, 'currentPassword'); ?>
		<?php echo $form->error($model, 'currentPassword'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model, 'newPassword'); ?>
		<?php echo $form->passwordField($model, 'newPassword'); ?>
		<?php echo $form->error($model, 'newPassword'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model, 'confirmPassword'); ?>
		<?php echo $form->passwordField($model, 'confirmPassword'); ?>
		<?php echo $form->error($model, 'confirmPassword'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('提交'); ?>
	</div>
<?php $this->endWidget(); ?>

</div><!-- form -->
